package com.xd.core.business.mapper;

import com.github.pagehelper.Page;
import com.xd.core.business.dto.ContractDto;
import com.xd.core.business.entity.Contract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.business.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZX
 * @since 2025-02-27
 */
public interface ContractMapper extends BaseMapper<Contract> {

    List<ContractVo> getContractList(@Param("contractDto") ContractDto contractDto,
                                     @Param("companyId") Integer companyId
                                     );

    List<ContractVo> getContracts(Integer id,String flag);

    void batchInsert(List<Contract> contracts);

    List<DeContractVo> debtQueryList(@Param("contractDto") ContractDto contractDto,@Param("companyId") Integer companyId);

    void updateContract(Contract c);

    void deleteByDKContract(Integer incomingId);

    IncomingDetailContractVo selectContracts(Integer outId);

    List<ContractDetailVo> selectInsurance(Integer incomingId);

    List<String> selectRemoveContracts(Integer outId);

    List<ContractAppListVo> getList(Integer outId);
}
